a = "Hello"
b = "Python"

print("a + b 输出结果：", a + b)
print("a * 2 输出结果：", a * 2)
print("a[1] 输出结果：", a[1])
print("a[1:4] 输出结果：", a[1:4])

if ("H" in a):
    print("H 在变量 a 中")
else:
    print("H 不在变量 a 中")

if ("M" not in a):
    print("M 不在变量 a 中")
else:
    print("M 在变量 a 中")

print(r'\n')
print(R'\n')

# a = 2
# b = 3
# c = a ** b
# d = a * b
# print("c 的值为：", c)
# print("d 的值为：", d)

# print("\\")

# import time
#
# for i in range(101):
#     print("\r{:3}%".format(i), end=' ')
#     time.sleep(0.05)

# var1 = 'Hello World!'
# var2 = "Runoob"
#
# print("var1[0]: ", var1[0])
# print("var2[1:5]: ", var2[1:5])
# print("\a")
# dict = {}
# dict['one'] = "1 - 菜鸟教程"
# dict[2]     = "2 - 菜鸟工具"
#
# tinydict = {'name': 'runoob','code':1, 'site': 'www.runoob.com'}
#
#
# print (dict['one'])       # 输出键为 'one' 的值
# print (dict[2])           # 输出键为 2 的值
# print (tinydict)          # 输出完整的字典
# print (tinydict.keys())   # 输出所有键
# print (tinydict.values()) # 输出所有值

# num_int = 123
# num_str = "456"
#
# print("Data type of num_int:",type(num_int))
# print("Data type of num_str:",type(num_str))

# print(num_int+num_str)
